package com.lytis.zoovideo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;

/**
 * @TableName comment
 */
@TableName(value = "comment")
@Data
public class Comment implements Serializable {
    /**
     * 评论id
     */
    @TableId
    private Integer id;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 视频id
     */
    private Integer videoId;

    /**
     * 点赞数量
     */
    private Long likes;
    /*
     * 用户id
     * */
    private Integer userId;
    /**
     * 评论时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}